package com.hyou.demos.mybatis.base;

public class CommonMessage extends BaseBean {
    
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -6564092352131689861L;
    
    /**
     * 处理结果：true-成功；false-失败
     */
    private boolean suc;
    
    /**
     * 响应消息
     */
    private String msg;
    
    /**
     * 响应数据体
     */
    private Object data;
    
    public CommonMessage() {
        
    }
    
    public CommonMessage(boolean suc, String msg) {
        this.suc = suc;
        this.msg = msg;
    }
    
    public CommonMessage(boolean suc, String msg, Object data) {
        this.suc = suc;
        this.msg = msg;
        this.data = data;
    }
    
    /**
     * @return 处理结果：true-成功；false-失败
     */
    public boolean isSuc() {
        return this.suc;
    }
    
    /**
     * @param suc 处理结果：true-成功；false-失败
     */
    public void setSuc(boolean suc) {
        this.suc = suc;
    }
    
    /**
     * @return 响应消息(提示消息)
     */
    public String getMsg() {
        return this.msg;
    }
    
    /**
     * @param msg 响应消息(提示消息)
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }
    
    /**
     * @return the data
     */
    public Object getData() {
        return this.data;
    }
    
    /**
     * @param data the data to set
     */
    public void setData(Object data) {
        this.data = data;
    }
    
}
